home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Graphics Plus
/
Graphics Plus.iso
/
amiga
/
opalvisn
/
opalprs1.lha
/
update.doc
< prev
Wrap
Text File
|
1993-01-13
|
5KB
|
178 lines
OpalPlayer and ARexx
OpalPlayer now has two different methods of being used with
ARexx. The first method involves creating a script file using
OpalPresents! and then using ARexx commands to effect the
transition timing (if ARexx advance method selected) as well as
to abort the script and change display priorities and options.
The second method is to use OpalPlayer as an ARexx host without
using a script. To use this method, simply run OpalPlayer giving
it the 'ARexxHost' keyword, i.e:
OpalPlayer ARexxHost
When in ARexxHost mode, the player will wait for ARexx commands,
processing them as they come in.
AREXX Commands
ADVANCE Usage: Advance
If OpalPlayer is waiting for and advance command for the current
image, (as set in OpalPresents!) the Player will perfrom the
transition to the next image.
Note: This command has no meaning in ARexxHost mode.
STOP Usage: Stop
This command will remove the OpalVision display and terminate the
player program. This command is now recognised in Timer and
Button advance modes.
ADDPRELOAD Usage: AddPreLoad FileName
If the image specified by 'FileName' is not present in the active
preload list it will be loaded into memory. FileName must
include the full path.
One images have been added into the preload list, they remain
resident and can be used repeatedly without any disk access.
FREEPRELOAD Usage: FreePreLoad ImageName
If the image specified by 'FileName' is present in the active
preload list, it will be removed from memory.
LOADIMAGE Usage: LoadImage ImageName
This command will load an image into memory, which will
subsequently be used in a transition. This command does not
effect the current display but will load an image into memory
only. If the image is already preloaded (resident) the imagename
will be noted and this command will return immediately.
If the ImageName is 'Blank' a blank (black) image will be
inserted.
Note: This command can only be used in ARexxHost mode.
TRANSITION Usage: TransType TransTime [Tokens]
This command will perform a transition from the current contents
of the OpalVision framebuffer to the image specified by the last
LoadImage command.
NOTE: a LoadImage command must be issued before executing this
command, if not Transition will return an error. Once the
transition has completed, the loaded image will be removed from
memory (unless it is a resident image).
The parameters are:
TransType = 0 to 19. Number of the transition to perform.
Transition 0 is 'Bang' and 19 is the vertical venetian effect.
All other transitions are as seen on the OpalPresents screen,
numbered left to right, top to bottom.
TransTime is the duration of the transition in 10th's of a
second. e.g to perform a fade over 2 seconds, use
Transition 1 20
'Tokens' can be a series of tokens equivalent to the ones
specified in the OpalPlayer script files. These tokens can be
used to set display priorities, enable stencils etc. All display
options set with these tokens will take effect AFTER the
transition has been performed. The following list is the tokens
currently accepted:
Display Priorities:
OpalOnly - OpalVision graphics only.
AmigaOnly - Amiga graphics only.
OpalPri - Dual Opal/Amiga display with Opal in front.
AmigaPri - Dual Opal/Amiga display with Amiga in front.
LiveOnly - Live video only.
Other Display Options:
PriStencil - Enable Priority stencil.
Alpha - Enable Alpha Channel.
Genlock - Enable Genlocking.
Latch - Latch the OpalVision display on.
Example:
LoadImage 'gfx:pic1'
Transition 1 20 OpalPri PriStencil
Note: This command can only be used in ARexxHost mode.
DISPLAYPRI Usage: DisplayPri Token
This command can be used to change the current display priority.
'Token' must be one of the 5 tokens mentioned above.
PRISTENCIL Usage: PriStencil [Enable|Disable]
This command can be used to switch on or off the priority
stencil. Either 'Enable' or 'Disable' must be specified.
GENLOCK Usage: Genlock [Enable|Disable]
This command can be used to switch on or off the genlocking.
Either 'Enable' or 'Disable' must be specified.
DISPLATCH Usage: DispLatch [Enable|Disable]
This command can be used to latch or unlatch the current display.
If the display is latched, any amiga animations or iff viewers
can be used over the 24bit display. Either 'Enable' or 'Disable'
must be specified.
ALPHA Usage: Alpha [Enable|Disable]
If the current image has a alpha channel information attached,
this command will enable or disable the use of this imformation
for keying over live video.
EXAMPLE SCRIPT
/* OpalPlayer ARexx host test.
*/
Address 'OpalPlayer_Rexx'
LoadImage 'gfx:hic'
transition 2 40
LoadImage 'gfx:analyse'
Pristencil enable
DisplayPri AmigaPri
transition 5 40
address command wait 3
LoadImage 'blank'
transition 1 40 OpalPri
stop